package com.dycc.libary.router_interceptor;

import android.content.Context;

import com.alibaba.android.arouter.facade.Postcard;
import com.alibaba.android.arouter.facade.service.DegradeService;
import com.alibaba.android.arouter.launcher.ARouter;

/**
 * 全局页面降级处理
 * Created by wxk on 2018/1/21 0021.
 */

public class DegradeServiceImpl implements DegradeService {

    @Override
    public void onLost(Context context, Postcard postcard) {
        //页面降级处理
        ARouter.getInstance().build("/libary/activity/ErrorActivity")
                .greenChannel().navigation();
    }

    @Override
    public void init(Context context) {

    }
}
